package br.ufpb.di.ppgi.negocio.modelo.participa;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

import br.ufpb.di.ppgi.negocio.modelo.proposta.Proposta;
import br.ufpb.di.ppgi.negocio.modelo.usuario.Usuario;

@Entity
public class ParticipaProposta implements Serializable{

	private static final long serialVersionUID = 3268142873500954479L;

	@EmbeddedId
	private ParticipaPropostaPK pk;
	
	public ParticipaProposta() {
		
	}

	public ParticipaProposta(Proposta proposta, Usuario professor) {
		super();
		this.pk = new ParticipaPropostaPK(professor, proposta);
	}
	
	public ParticipaProposta(ParticipaPropostaPK pk) {
		super();
		this.pk = pk;
	}

	public ParticipaPropostaPK getPk() {
		return pk;
	}

	public void setPk(ParticipaPropostaPK pk) {
		this.pk = pk;
	}
	
	
}
